package com.dlut.txy.designpattern.chainofresponsibility.approve1.impl;

import com.dlut.txy.designpattern.chainofresponsibility.approve1.AskForLeaveApproveHandler;
import com.dlut.txy.designpattern.chainofresponsibility.approve1.entity.AskForLeaveRequest;

/**
 * 三级审批，只能审批请假天数在30天以内（含）的
 */
public class ThirdApproveHandler extends AskForLeaveApproveHandler {
    @Override
    public int getApproveMax() {
        return 30;
    }

    @Override
    protected void customHandle(AskForLeaveRequest request) {
        System.out.println("三级审批通过");
    }

}
